package com.CST.mapper.cst.ys;

import com.CST.dto.ys.YsBusinessBudgetDataDTO;
import com.CST.entity.ys.YsBusinessBudgetData;
import com.CST.vo.ys.YsBusinessBudgetDataVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author qtx
 * @since 2023-05-22
 */
@Mapper
public interface YsBusinessBudgetDataMapper extends BaseMapper<YsBusinessBudgetData> {

    /**
     * 查询业务编制数据
     * @param page 分页参数
     * @param dataDTO 查询条件
     * @return 分页集合
     */
    Page<YsBusinessBudgetData> selectPageNew(Page<YsBusinessBudgetData> page, @Param("dto") YsBusinessBudgetDataDTO dataDTO);

    /**
     * 查询
     * @return 集合
     */
    List<YsBusinessBudgetData> selectNew();

    /**
     * 查询全部
     * @return 集合
     */
    List<YsBusinessBudgetData> selectNewAll(Integer year);

    /**
     * 查询全部发布数据
     * @return 集合
     */
    List<YsBusinessBudgetData> selectAllRe(Integer year);

    /**
     * 删除全部
     */
    void deleteByYear(Integer indexYear);

    List<YsBusinessBudgetDataVO> getBusinessDataList(YsBusinessBudgetDataDTO dto);

    List<YsBusinessBudgetData> ysBusinessData();
}
